/*
 Erica Sadun, http://ericasadun.com
 iPhone Developer's Cookbook, 6.x Edition
 BSD License, Use at your own risk
 */
//  Created by  on 14-1-17.
//  针对Erica Sadun的代码做微调
//

#import <UIKit/UIKit.h>

@interface UIDevice (Hardware)
/**
 *  cpu核数
 */
+ (NSUInteger)cpuCount;
/**
 *  cpu利用率
 */
+ (NSArray *)cpuUsage;
/**
 * 平台
 */
+ (NSString *)platform;
/**
 *  获取手机内存总量,返回的是字节数
 */
+ (NSUInteger)totalMemoryBytes;
/**
 *  获取手机可用内存,返回的是字节数
 */
+ (NSUInteger)freeMemoryBytes;
/**
 *  获取手机硬盘空闲空间,返回的是字节数
 */
+ (long long)freeDiskSpaceBytes;
/**
 *  获取手机硬盘总空间,返回的是字节数
 */
+ (long long)totalDiskSpaceBytes;


/**
 *  判断是否越狱方法
 */
+ (BOOL)isJailBroken;
/***************** 电池 ***************/

/**
 *  获取电池状态
 */
+ (CGFloat)getBatteryQuantity;

/*
 * @method uniqueGlobalDeviceIdentifier
 * @description use this method when you need a unique global identifier to track a device
 * with multiple apps. as example a advertising network will use this method to track the device
 * from different apps.
 * It generates a hash from the MAC-address only.
 */
+(NSString *)uniqueGlobalDeviceIdentifier;


@end